<?php

echo '<div id="products">
		<h3>Browse by Discipline - IT</h3>
		<p><a href="products.php">Back to All Products</a></p>
	</div>
	';

	echo "<div id='yearlevel' style='float:left; clear:left; padding-right:60px; font-size:10px; height:300px; margin-left:5em; margin-top:1em'>";
	echo "<h3>Year Level</h3>";
    echo "<ul>";
	$code = $_GET['code']; 
  if ($code == "1st")
  {
	echo "<li class='minus'>";
    echo "<a href='?browse'><strong>1st</strong></a>";
  }
  else 
  {
	      echo "<li class='plus'>";
	      echo "<a href='?browse&code=1st'>1st</a>";
  }

  echo "</li>";
  if ($code == "2nd")
  {
	 echo "<li class='minus'>";
	 echo "<a href='?browse'><strong>2nd</strong></a>";
  }
  else
  {
	echo "<li class='plus'>";
    echo "<a href='?browse&code=2nd'>2nd</a>";
  }
  echo "</li>";
  if ($code == "3rd")
  {
	 echo "<li class='minus'>";
	 echo "<a href='?browse'><strong>3rd</strong></a>";
  }
  else
  {
	echo "<li class='plus'>";
    echo "<a href='?browse&code=3rd'>3rd</a>";
  }
  echo "</li>";
  echo "</ul>";
echo "</div>";

echo "<div id='subjects' style='float:left; padding-right:60px; font-size:10px; margin-top:1em'>";

if ($_GET['code'] != "")
{
	echo "<h3>Subjects</h3>";
}
$code = $_GET['code'];
$subject = $_GET['subject'];
if ($code == "1st")
{
	  echo "<ul id='containerul' class='plus'>";
	  if ($subject == "CP1005")
	  {
          echo "<li class='minus'><a href='?browse&code=1st'><strong>CP1005 - Business & IT Interface</strong></a>";
	  }
	  else
	  {
		  echo "<li><a href='?browse&code=1st&subject=CP1005'>CP1005 - Business & IT Interface</a>";
	  }
      echo "</li>";
	  if ($subject == "CP1010")
	  {
		    echo "<li class='minus'><a href='?browse&code=1st'><strong>CP1010 - Introduction to Multimedia</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=1st&subject=CP1010'>CP1010 - Introduction to Multimedia</a>";
	  }
      echo "</li>";
	  if ($subject == "CP1030")
	  {
		    echo "<li class='minus'><a href='?browse&code=1st'><strong>CP1030 - IT Fundamentals</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=1st&subject=CP1030'>CP1030 - IT Fundamentals</a>";
	  }
      echo "</li>";
	  if ($subject == "CP1200")
	  {
		    echo "<li class='minus'><a href='?browse&code=1st'><strong>CP1200 - Introduction to Programming 1</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=1st&subject=CP1200'>CP1200 - Introduction to Programming 1</a>";
	  }
      echo "</li>";
	  if ($subject == "CP1300")
	  {
		    echo "<li class='minus'><a href='?browse&code=1st'><strong>CP1300 - Introduction to Programming 2</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=1st&subject=CP1300'>CP1300 - Introduction to Programming 2</a>";
	  }
      echo "</li>";
	  if ($subject == "CP1500")
	  {
		    echo "<li class='minus'><a href='?browse&code=1st'><strong>CP1500 - Conceptual Modelling</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=1st&subject=CP1500'>CP1500 - Conceptual Modelling</a>";
	  }
      echo "</li>";
      echo "</ul>";
} 
else if ($code == "2nd")
{
	  echo "<ul class='plus' id='containerul'><br />";
	  if ($subject == "CP2010")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2010 - Web Programming</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2010'>CP2010 - Web Programming</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2011")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2011 - Advanced Programming</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2011'>CP2010 - Advanced Programming</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2012")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2012 - Networking</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2012'>CP2012 - Networking</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2013")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2013 - Software Engineering</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2013'>CP2013 - Software Engineering</a>";
	  }
      echo "</li>";
      if ($subject == "CP2014")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2014 - Animation and Simulation</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2013'>CP2014 - Animation and Simulation</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2016")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2016 - Data Management and Handling</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2016'>CP2016 - Data Management and Handling</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2017")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2017 - Interactive e-Business</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2017'>CP2017 - Interactive e-Business</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2020")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2020 - Games Design and Technology</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2020'>CP2020 - Games Design and Technology</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2200")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2200 - Introduction to Programming 1</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2200'>CP2200 - Introduction to Programming 1</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2402")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2402 - Hardware and Software Fundamentals</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2402'>CP2402 - Hardware and Software Fundamentals</a>";
	  }
      echo "</li>";
	  if ($subject == "CP2503")
	  {
		    echo "<li class='minus'><a href='?browse&code=2nd'><strong>CP2503 - Enterprise Database Systems</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=2nd&subject=CP2503'>CP2503 - Enterprise Database Systems</a>";
	  }
      echo "</li>";
	  echo "</ul>";
}

else if ($code == "3rd")
{
	  echo "<ul class='plus' id='containerul'><br /><br />";
	  if ($subject == "CP3000")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3000 - Topics in Computer Science</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3000'>CP3000 - Topics in Computer Science</a>";
	  }
      echo "</li>";
	  if ($subject == "CP3003")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3003 - Web Technologies</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3003'>CP3003 - Web Technologies</a>";
	  }
      echo "</li>";
	  if ($subject == "CP3020")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3020 - Advanced Data Management</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3020'>CP3020 - Advanced Data Management</a>";
	  }
      echo "</li>";	
	  if ($subject == "CP3046")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3046 - Project Management 1</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3046'>CP3046 - Project Management 1</a>";
	  }
      echo "</li>";		  
	  if ($subject == "CP3047")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3047 - Project Management 2</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3047'>CP3047 - Project Management 2</a>";
	  }
      echo "</li>";		  
	  if ($subject == "CP3300")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3300 - Knowledge Discovery and Data Mining</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3300'>CP3300 - Knowledge Discovery and Data Mining</a>";
	  }
      echo "</li>";	
	  if ($subject == "CP3301")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3301 - Human Computer Interaction</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3301'>CP3301 - Human Computer Interaction</a>";
	  }
      echo "</li>";	
	  if ($subject == "CP3302")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3302 - Information Security</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3302'>CP3302 - Information Security</a>";
	  }
      echo "</li>";	
	  if ($subject == "CP3307")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3307 - Mobile Technology</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3307'>CP3307 - Mobile Technology</a>";
	  }
      echo "</li>";		  
	  if ($subject == "CP3311")
	  {
		    echo "<li class='minus'><a href='?browse&code=3rd'><strong>CP3311 - Simulation</strong></a>";
	  }
	  else
	  {
		    echo "<li><a href='?browse&code=3rd&subject=CP3311'>CP3311 - Simulation</a>";
	  }
      echo "</li>";		  
	  echo "</ul>";
}

echo "</div>";

echo "<div id='moreinformation' style='font-size:10px; margin-top:2em'>";
$subject = $_GET['subject'];
if ($subject != "")
{
echo "<h3>Textbooks for " . $subject. "</h3>";


echo "<span style='padding-left:2em'><strong>Prescribed:</strong></span>";
	if ($_GET['prescribed'] == "expand")
	{
		echo "<br /><span style='padding-left:50px'><a href='?browse&code=" . $_GET['code'] . "&subject=" . $_GET['subject'] . "'><img src='images/minus.png' style='padding-right:5px' />Book for " . $_GET['subject'] . "</a></span>";
		
	echo "<table style='padding-left:70px; font-size:10px'>";
	echo "<tr><td>Author:</td><td>SURNAME</td></tr>";
	echo "<tr><td>Publisher:</td><td>EXAMPLE</td></tr>";
	echo "<tr><td>Edition:</td><td>3</td></tr>";
	echo "<tr><td>ISBN/APN:</td><td>0735619670/9780735619678</td></tr>";
	echo "<tr><td>RRP:</td><td>$99.95</td></tr>";
	echo "<tr><td>JCU Price:</td><td>$87.96</td></tr>";
	echo "<tr><td>Stock:</td><td>Currently in stock</td></tr>";
	echo "<tr><td>Order Status:</td><td>Not on order</td></tr>";
	echo "</table>";
	}
	else
	{
	echo "<br /><span style='padding-left:50px'><a href='?browse&code=" . $_GET['code'] . "&subject=" . $_GET['subject'] . "&prescribed=expand'><img src='images/plus.png' style='padding-right:5px' />Book for " . $_GET['subject'] . "</a></span>";
	}
}
echo "</div>";


?>